#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
# Run 'pod lib lint ali_vod_video.podspec' to validate before publishing.
#
Pod::Spec.new do |s|
  s.name             = 'ali_vod_video'
  s.version          = '0.0.1'
  s.summary          = '阿里云Vod视频上传plugin'
  s.description      = <<-DESC
阿里云Vod视频上传plugin
                       DESC
  s.homepage         = 'http://example.com'
  s.license          = { :file => '../LICENSE' }
  s.author           = { 'ztstech' => 'bugmonkey' }
  s.source           = { :path => '.' }
  s.source_files = 'Classes/**/*'
  s.public_header_files = ['Classes/**/*.h']
  s.dependency 'Flutter'
  s.dependency 'Alamofire'
  s.vendored_frameworks = 'Frameworks/*.framework'
  s.vendored_libraries = 'Frameworks/*.a'
  # s.dependency 'VODUpload'
  s.dependency 'SwiftyJSON'
  s.static_framework = true
  # ios system framework

  s.platform = :ios, '10.0'
  s.pod_target_xcconfig = {  }
  s.swift_version = '5.0'

  s.user_target_xcconfig = { 'OTHER_LDFLAGS' => '-ObjC','CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES' }
  s.pod_target_xcconfig = { 'OTHER_LDFLAGS' => '-ObjC','CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES','DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64, arm64' }
  s.preserve_paths = 'Frameworks/*.framework', 'Frameworks/*.a'
  s.pod_target_xcconfig = {
  'OTHER_LDFLAGS' => '-ObjC','CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES','DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64, arm64',
  'FRAMEWORK_SEARCH_PATHS' => '${PODS_ROOT}/Frameworks',
              'HEADER_SEARCH_PATHS' => '$(PODS_ROOT)/Frameworks/*.framework/Headers',
              'LD_RUNPATH_SEARCH_PATHS' => '$(PODS_ROOT)/Frameworks/'
    }
   s.subspec 'VODUpload' do |ss|
      ss.frameworks = "AVFoundation","CoreMedia","SystemConfiguration", "MobileCoreServices"
      ss.library   = "resolv"

      ss.vendored_frameworks =  'Frameworks/*.framework'
      ss.vendored_libraries = 'Frameworks/*.a'

      ss.preserve_paths = 'Frameworks/*.framework', 'Frameworks/thirdlibs/*.a'
      ss.pod_target_xcconfig = { 'LD_RUNPATH_SEARCH_PATHS' => '$(PODS_ROOT)/Frameworks/' }
    end


end
